package cn.edu.wynu.edusys.service.serviceImpl;

import cn.edu.wynu.edusys.controller.DeptController;
import cn.edu.wynu.edusys.mapper.DeptMapper;
import cn.edu.wynu.edusys.pojo.Dept;
import cn.edu.wynu.edusys.service.DeptService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;
    @Override
    public List<Dept> list(){

        return deptMapper.list();
    }

    @Override
    public void deptDel(Integer id) {
        deptMapper.deptDel(id);
    }
}
